package com.lay.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 保险信息表
 * </p>
 *
 * @author Lay
 * @since 2022-06-09
 */
public class CarInsur implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 保险编号，主键，唯一
     */
    @TableId(value = "ci_id", type = IdType.AUTO)
    private Integer ciId;

    /**
     * 保险名称
     */
    private String ciName;

    /**
     * 保险类型
     */
    private String ciType;

    /**
     * 赔付费率
     */
    private Double compRate;

    /**
     * 最大保额
     */
    private BigDecimal maxmoney;

    /**
     * 保费费率（如果该保险的费用和一些价格有关系的一种比率）
     */
    private Double insRale;

    /**
     * 保险状态（0待审核，1上架，2下架）
     */
    private Integer ciState;

    /**
     * 审核人编号
     */
    private Integer unId;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date ciAddtime;

    /**
     * 保险基础价
     */
    private BigDecimal ciMoney;


    public Integer getCiId() {
        return ciId;
    }

    public void setCiId(Integer ciId) {
        this.ciId = ciId;
    }

    public String getCiName() {
        return ciName;
    }

    public void setCiName(String ciName) {
        this.ciName = ciName;
    }

    public String getCiType() {
        return ciType;
    }

    public void setCiType(String ciType) {
        this.ciType = ciType;
    }

    public Double getCompRate() {
        return compRate;
    }

    public void setCompRate(Double compRate) {
        this.compRate = compRate;
    }

    public BigDecimal getMaxmoney() {
        return maxmoney;
    }

    public void setMaxmoney(BigDecimal maxmoney) {
        this.maxmoney = maxmoney;
    }

    public Double getInsRale() {
        return insRale;
    }

    public void setInsRale(Double insRale) {
        this.insRale = insRale;
    }

    public Integer getCiState() {
        return ciState;
    }

    public void setCiState(Integer ciState) {
        this.ciState = ciState;
    }

    public Integer getUnId() {
        return unId;
    }

    public void setUnId(Integer unId) {
        this.unId = unId;
    }

    public Date getCiAddtime() {
        return ciAddtime;
    }

    public void setCiAddtime(Date ciAddtime) {
        this.ciAddtime = ciAddtime;
    }

    public BigDecimal getCiMoney() {
        return ciMoney;
    }

    public void setCiMoney(BigDecimal ciMoney) {
        this.ciMoney = ciMoney;
    }

    @Override
    public String toString() {
        return "CarInsur{" +
        "ciId=" + ciId +
        ", ciName=" + ciName +
        ", ciType=" + ciType +
        ", compRate=" + compRate +
        ", maxmoney=" + maxmoney +
        ", insRale=" + insRale +
        ", ciState=" + ciState +
        ", unId=" + unId +
        ", ciAddtime=" + ciAddtime +
        ", ciMoney=" + ciMoney +
        "}";
    }
}
